package cn.jn.lhm.statistics.clent;

import cn.jn.lhm.statistics.clent.impl.UcClientImpl;
import cn.jn.lhm.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author LHM
 * @Tips 热爱每一天，奋斗每一天
 * @date 2020/6/18 - 19:41
 */
@Service
@FeignClient(value = "uc-service",fallback = UcClientImpl.class)
public interface UcClient {

    /**
     * RPC远程调用，查询当天的注册人数
     * @param day 日期
     * @return R
     */
    @GetMapping("/uc/get/statistics/info/{day}")
    public R countRegisterNumber(@PathVariable("day")String day);
}
